package db;

/**
 * @author 化尘成影
 * @Description
 * @date 2022/6/27 13:28
 */
public class Player {
    private String username;
    private String player;
    private Boolean isBlack;//是否是黑棋玩家
    private Boolean isYour;//是否轮到你下
    private String chess;//棋子
    private int goBackCount;//剩余悔棋数量

    public Player() {
    }

    public Player(String username, String player, Boolean isBlack, Boolean isYour, String chess, int goBackCount) {
        this.username = username;
        this.player = player;
        this.isBlack = isBlack;
        this.isYour = isYour;
        this.chess = chess;
        this.goBackCount = goBackCount;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPlayer() {
        return player;
    }

    public void setPlayer(String player) {
        this.player = player;
    }

    public Boolean getBlack() {
        return isBlack;
    }

    public void setBlack(Boolean black) {
        isBlack = black;
    }

    public Boolean getYour() {
        return isYour;
    }

    public void setYour(Boolean your) {
        isYour = your;
    }

    public String getChess() {
        return chess;
    }

    public void setChess(String chess) {
        this.chess = chess;
    }

    public int getGoBackCount() {
        return goBackCount;
    }

    public void setGoBackCount(int goBackCount) {
        this.goBackCount = goBackCount;
    }

    @Override
    public String toString() {
        return "Player{" +
                "username='" + username + '\'' +
                ", player='" + player + '\'' +
                ", isBlack=" + isBlack +
                ", isYour=" + isYour +
                ", chess='" + chess + '\'' +
                ", goBackCount=" + goBackCount +
                '}';
    }
}
